import service from '@/api'

//获取配件列表
export function getPeijian(params) {
  return service({
    url:'/app/partsList',
    method:'GET',
    params
  })
}

//新增配件
export function addPeijian(params) {
  return service({
    url:'/app/addParts',
    method:'POST',
    params
  })
}

export function editPeijian(params) {
  return service({
    url:'/app/editParts',
    method:'POST',
    params
  })
}

export function delPeijian(params) {
  return service({
    url:'/app/scrapParts',
    method:'POST',
    params
  })
}

export function sendParts(params) {
  return service({
    url:'/app/sendParts',
    method:'POST',
    params
  })
}

export function sendPartsToUser(params) {
  return service({
    url:'/app/sendPartsUser',
    method:'POST',
    params
  })
}

//获取所有电脑
export function getAllComputer(params) {
  return service({
    url:'/app/computer',
    method:'GET',
    params
  })
}